<template>
	<view><button type="default">1111</button></view>
</template>

<script>
export default {
	data() {
		return {};
	},
	created() {
		//this.name();
	},
	methods: {
		async name() {
			this.$api
				.post({
					url: '/wanlshop/product/footprint',
					data: {
						page: this.current_page,
					},
				})
				.then(result => {
					console.log('result :>> ', result);
					uni.showToast({
						title: '进入首页',
						icon: 'none',
					});
					uni.switchTab({
						url: 'index',
					});
				})
				.catch(err => {
					console.log('err :>> ', err);
					uni.showToast({
						title: '不进入首页',
						icon: 'none',
					});
				});
		},
	},
};
</script>

<style></style>
